import request from '@/utils/request.js'
const prefix = '/api/follow'

// 关注
export function addFollow(otherId) {
	return request({
		url: prefix + '/interest/' + otherId,
		method: 'post',
	})
}
//取消关注
export function delFollow(otherId) {
	return request({
		url: prefix + '/delInterest/' + otherId,
		method: 'delete',
	})
}
//关注列表
export function followList() {
	return request({
		url: prefix + '/list',
		method: 'get',
	})
}